#ifndef EXCELHELPER_H
#define EXCELHELPER_H

#include <QAxObject>
#include <vector>
#include "PersonDao.h"

using namespace std;

class ExcelHelper
{
public:
    void open(QString file);
    void close();
    void addInfos(vector<PersonData>& v);
    void addTitle();
private:
    QAxObject *excel = 0;    
    QAxObject *workbooks = 0;
    QAxObject *workbook = 0;  
    QAxObject *worksheets = 0;
    QAxObject *worksheet = 0;
    
    int cols;
    int rows;
    QString fileName;
};

#endif // EXCELHELPER_H
